package com.vip.buycart.dao.impl;

import java.util.HashMap;
import java.util.List;

import com.vip.buycart.dao.OrderDetailDAO;
import com.vip.buycart.entity.OrderDetail;
import com.vip.framework.generic.GenericDaoImpl;

/**
 * 
 * @author sai
 *
 */
public class OrderDetailDAOImpl extends GenericDaoImpl<OrderDetail>  implements OrderDetailDAO{

	public OrderDetailDAOImpl(OrderDetail t) {
		super(t);
	}

	public List<OrderDetail> searchBargain(HashMap<String, String> param, int page,
			int rowsPerPage) {
		
		String hql=" from OrderDetail od order by od.formOrder.orderTime desc ";
		
		return pageListQuery(hql, page, rowsPerPage);
	}
}
